package ru.arriah.common.web;

import javax.servlet.http.*;

public abstract class GenericHttpServlet extends HttpServlet {
   public GenericHttpServlet() {
      super();
   }

   protected void handleException(Exception e, String methodName) {
      System.out.println(
         this.getClass().getName() + "." + methodName + " caused " +
         e.getClass().getName() + ": " + e.getMessage()
      );

      e.printStackTrace();
   }
}
